package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IDeviceDataService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zzw
 * @date 2025/6/6
 * @description 设备数据定时清理
 */
@Component
@Slf4j
public class DeviceDataClearJob {

    @Autowired
    private IDeviceDataService deviceDataService;

    public void clearDeviceData() {
        deviceDataService.clearDeviceData();
        log.info("设备数据清理完成");
    }
}
